@extends('layouts.app')
@section('title', '财务管理')

@section('content')
    <div class="conn">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <table class="table table-hover">
                        <h2 class="text-center">客户申请</h2>
                        <thead>
                        <tr>
                            <th>姓名</th>

                            <th>还款次数</th>
                            <th>每月还款</th>
                            <th>还款时间</th>

                        </tr>
                        </thead>
                        <tbody>


                                {{--@foreach($list as $v)--}}
                                {{--<td>{{$v->name}}</td>--}}
                                {{--@endforeach--}}

                                @foreach($lists as $k)
                                    <tr>
                                        <td>{{$k->loans->name}}</td>
                                        <td>{{$k->frequency}}</td>
                                        <td>{{$k->moneys}}</td>
                                        <td>{{$k->created_at}}</td>
                                    </tr>
                                @endforeach
                        </tbody>

                    </table>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="pull-right">
                        {{ $lists->render() }}
                    </div>
                </div>
            </div>
        </div>
    </div>
    <link rel="stylesheet" type="text/css"  href="{{ asset('css/finance/index.css') }}"/>
@endsection


